<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input id="c-procedure1_id" type="hidden" name="row[procedure1_id]" value="0">
    <input id="c-procedure2_id" type="hidden" name="row[procedure2_id]" value="0">
    <input id="c-procedure3_id" type="hidden" name="row[procedure3_id]" value="0">
    <input id="c-procedure4_id" type="hidden" name="row[procedure4_id]" value="0">
    <input id="c-procedure5_id" type="hidden" name="row[procedure5_id]" value="0">
    <input id="c-procedure6_id" type="hidden" name="row[procedure6_id]" value="0">
    <input id="c-procedure7_id" type="hidden" name="row[procedure7_id]" value="0">
    <input id="c-procedure8_id" type="hidden" name="row[procedure8_id]" value="0">
    <input id="c-procedure1_manhours_s" type="hidden" name="row[procedure1_manhours_s]" value="0">
    <input id="c-procedure2_manhours_s" type="hidden" name="row[procedure2_manhours_s]" value="0">
    <input id="c-procedure3_manhours_s" type="hidden" name="row[procedure3_manhours_s]" value="0">
    <input id="c-procedure4_manhours_s" type="hidden" name="row[procedure4_manhours_s]" value="0">
    <input id="c-procedure5_manhours_s" type="hidden" name="row[procedure5_manhours_s]" value="0">
    <input id="c-procedure6_manhours_s" type="hidden" name="row[procedure6_manhours_s]" value="0">
    <input id="c-procedure7_manhours_s" type="hidden" name="row[procedure7_manhours_s]" value="0">
    <input id="c-procedure8_manhours_s" type="hidden" name="row[procedure8_manhours_s]" value="0">

    <input id="c-mainprocess_id" type="hidden" name="row[mainprocess_id]" value="0">
    <input id="c-subprocess_id" type="hidden" name="row[subprocess_id]" value="0">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('产品名称')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-subprocess"  class="form-control" name="row[subprocess]" type="text" value="">
        </div>
        <!--<a id="b-subprocess" class="btn btn-info" href="javascript:;" > 选择子制程(产品) </a>-->
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('归属主制程名称')}:</label>
        <div class="col-xs-12 col-sm-3">
            <input id="c-mainprocess"  class="form-control" name="row[mainprocess]" type="text"
                   value="">
        </div>
        <a id="b-mainprocess" class="btn btn-info" href="javascript:;" > 选择主制程(产品) </a>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('计划完工时间')}:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-finishdate"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[finishdate]" type="text" value="{:date('Y-m-d', strtotime('+30 day'))}">
        </div>
        <label class="control-label col-xs-12 col-sm-2">{:__('产品数量')}:</label>
        <div class="col-xs-12 col-sm-2">
            <input id="c-num"  class="form-control" name="row[num]" type="number" value="1">
        </div>
    </div>

    {$html}


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
